package com.mvc.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;

import com.mvc.dao.IOrderInfoDao;
import com.mvc.po.OrderInfomation;

public class OrderInfoDAOImpl implements IOrderInfoDao {
	
	@Autowired
	private JdbcTemplate jdbcTemplate;

	@Override
	public OrderInfomation getOrder(String pnrCode) {
		return this.jdbcTemplate.queryForObject("select * from orderInformation where pnr = " + pnrCode, OrderInfomation.class);
	}

}
